/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tces.view;

import com.opensymphony.xwork2.ActionSupport;
import com.tces.controller.CollegeDAO;
import com.tces.model.SubjectOffering;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.log4j.Logger;

/**
 *
 * @author arnolda
 */
public class CollegeAction extends ActionSupport {

    List<SubjectOffering> collegeList = new ArrayList<SubjectOffering>();
    private static final Logger log = Logger.getLogger(CollegeAction.class);
    
    @Override
    public String execute() {
        try {
            collegeList = CollegeDAO.findCode();
        } catch (Exception ex) {
            log.error(ex);
        }
        return SUCCESS;
    }

    public List<SubjectOffering> getCollegeList() {
        return collegeList;
    }

    public void setCollegeList(List<SubjectOffering> collegeList) {
        this.collegeList = collegeList;
    }

    


}
